<template>
    <fieldset>
        <legend>插槽作用域</legend>
        <h1>一恶搞组件的结构</h1>
        <slot name="scope" :a='arr'></slot>
    </fieldset>
</template>

<script>
    export default{
        data(){
            return {
                arr:['吃','喝','睡']
            }
        }
    }
</script>